import request from '@/plugins/request';

export function AccountLogin (params) {
    return request({
        url: '/login',
        method: 'get',
        params
    });
}

export function AccountRegister (data) {
    return request({
        url: '/api/register',
        method: 'post',
        data
    });
}

export function DidList (data) {
    return request({
        url: '/gid/list',
        method: 'post',
        data
    });
}

export function CredentialList (data) {
    return request({
        url: '/credential/list',
        method: 'post',
        data
    });
}

export function CredentialRevoke (data) {
    return request({
        url: '/credential/revoke',
        method: 'post',
        data
    });
}

export function VerifyCredential (data) {
    return request({
        url: '/verify/verifyCredential',
        method: 'post',
        data: data
    });
}
